<table class="ke-zeroborder" width="100%" bordercolor="#000000" border="0">
    <tbody>
        <tr>
            <td class="ys1" height="34" align="right">说明</td>
            <td colspan="3" class="ys2">{explain}<br /></td>
        </tr>
        <tr>
            <td class="ys1" height="34" align="right">相关文件</td>
            <td colspan="3" class="ys2">{file_content}</td>
        </tr>
        <tr>
            <td class="ys1" height="34" align="right">反馈人</td>
            <td class="ys2">{base_name}</td>
            <td class="ys1" align="right"><br /></td>
            <td class="ys2"><br /></td>
        </tr>
        <tr>
            <td class="ys1" width="15%" height="34" align="right">*单位名称<br /></td>
            <td class="ys2" width="35%">{company}<br /></td>
            <td class="ys1" width="15%" align="right"><br /></td>
            <td class="ys2" width="35%"><br /></td>
        </tr>
    </tbody>
</table>
<div id="projectinfo_cgfk">
    <table class="ke-zeroborder" width="100%" bordercolor="#000000" border="0">
        <tbody>
            <tr>
                <td class="ys1" height="34" align="center">编号</td>
                <td class="ys1">采购项目</td>
                <td class="ys1">预算金额（元）</td>
                <td class="ys1">代理机构</td>
                <td class="ys1">组织形式</td>
                <td class="ys1">采购方式</td>
                <td class="ys1">装备中心联系人</td>
            </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript">
function oninputblur(na, zb, obj) {
    var name = obj.name;
    var val_tmp = obj.value;
    if (name == "company") {
        loadProjectInfo(val_tmp);
    }

}

function loadProjectInfo(company) {
    var content = "";
    js.ajax(js.getajaxurl('getApproveSubList', 'index', 'cg'), {
        "companyid": company
    }, function(s) {
        content += "<table class=\"ke-zeroborder\" width=\"100%\" bordercolor=\"#000000\" border=\"0\">";
        content += "<tbody>";
        content += "<tr>";
        content += "<td class=\"ys1\" height=\"34\" align=\"center\">编号</td>";
        content += "<td class=\"ys1\">采购项目</td>";
        content += "<td class=\"ys1\">预算金额（元）</td>";
        content += "<td class=\"ys1\">代理机构</td>";
        content += "<td class=\"ys1\">组织形式</td>";
        content += "<td class=\"ys1\">采购方式</td>";
        content += "<td class=\"ys1\">装备中心联系人</td>";
        content += "</tr>";
        $.each(s, function(i, field) {
            content += "<tr>";
            content += "<td>" + field.id + "</td>";
            content += "<td>" + field.name + "</td>";
            content += "<td>" + field.budget + "</td>";
            content += "<td>" + field.proxygov + "</td>";
            content += "<td>" + field.catalogue + "</td>";
            content += "<td>" + field.buymode + "</td>";
            content += "<td>" + field.truename + "</td>";
            content += "</tr>";
        });
        content += "</tbody></table>";
        $("#projectinfo_cgfk").html(content);
    }, 'get,json', false, '');
}
</script>